package com.shop.dao;

import java.io.Serializable;
import java.util.List;

import org.hibernate.LockMode;

import com.shop.pojo.User;

public interface IUserDao {
	
	public User findById(String id);
	public User findById(Serializable id,LockMode lockMode);
	public void save(User user);
	public User findByUserId(String userid);
	public void update(User user);
	public List<User> findByLatestOrder(int firstResult,int  maxResult);
	public List<User> findAll(int firstResult,int maxResult);
	public void deleteById(String id);
	public int  count();
}
